﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Bonobo.Irc.Tests
{
    [TestClass]
    public class IrcNicknameTest
    {
        [TestMethod]
        [ExpectedException(typeof(ArgumentException))]
        public void IrcNick_InvalidChars()
        {
            new IrcNickname("\0\0\0");
        }

        [TestMethod]
        [ExpectedException(typeof(ArgumentException))]
        public void IrcNick_TooLong()
        {
            new IrcNickname("A1234567890");
        }

        [TestMethod]
        [ExpectedException(typeof(ArgumentException))]
        public void IrcNick_InvalidFirstChar()
        {
            new IrcNickname("0abc0");
        }
    }
}
